<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>教师数据管理</title>

    <meta name="description" content="Static &amp; Dynamic Tables" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="${ctx}/css/bootstrap.min.css" />
    <link rel="stylesheet" href="${ctx}/css/font-awesome.min.css" />
	<link rel="stylesheet" href="${ctx}/css/dropzone.css">
		<link rel="stylesheet"   href=" ${ctx}/css/pagination.css" />
    <!-- page specific plugin styles -->

    <!-- text fonts -->
    <link rel="stylesheet" href="${ctx}/css/ace-fonts.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="${ctx}/css/ace.min.css" id="main-ace-style" />

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../css/ace-part2.min.css" />
    <![endif]-->
    <link rel="stylesheet" href="${ctx}/css/ace-skins.min.css" />
    <link rel="stylesheet" href="${ctx}/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="${ctx}/css/toastr.css" />

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="../css/ace-ie.min.css" />
    <![endif]-->

    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="${ctx}/js/jquery.min.js"></script>
    <script src="${ctx}/js/ace-extra.min.js"></script>
	<script src="${ctx}/js/dropzone.js"></script>
		<script src="${ctx}/js/toastr.js"></script>

    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

    <!--[if lte IE 8]>
    <script src="../js/html5shiv.min.js"></script>
    <script src="../js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="no-skin">
<!-- #section:basics/navbar.layout -->
<div id="navbar" class="navbar navbar-default">
    <script type="text/javascript">
        try{ace.settings.check('navbar' , 'fixed')}catch(e){}
        var basePath="${ctx}";
    </script>

    <div class="navbar-container" id="navbar-container">
        <!-- #section:basics/sidebar.mobile.toggle -->
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
            <span class="sr-only">Toggle sidebar</span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>
        </button>

        <!-- /section:basics/sidebar.mobile.toggle -->
        <div class="navbar-header pull-left">
            <!-- #section:basics/navbar.layout.brand -->
            <a href="#" class="navbar-brand">
                <small>
                    <i class="fa fa-leaf"></i>
                    小黄莺艺术学校 | Admin
                </small>
            </a>

            <!-- /section:basics/navbar.layout.brand -->

            <!-- #section:basics/navbar.toggle -->

            <!-- /section:basics/navbar.toggle -->
        </div>

        <!-- #section:basics/navbar.dropdown -->
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">

                <li class="green">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
                    </a>
                </li>

                <!-- #section:basics/navbar.user_menu -->
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="../assets/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>Welcome,</small>
									admin
								</span>

                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>

                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="#">
                                <i class="ace-icon fa fa-cog"></i>
                                Settings
                            </a>
                        </li>

                        <li class="divider"></li>

                        <li>
                            <a href="${ctx}/admin/logout">
                                <i class="ace-icon fa fa-power-off"></i>
                                Logout
                            </a>
                        </li>
                    </ul>
                </li>

                <!-- /section:basics/navbar.user_menu -->
            </ul>
        </div>

        <!-- /section:basics/navbar.dropdown -->
    </div><!-- /.navbar-container -->
</div>

<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    </script>

    <!-- #section:basics/sidebar -->
    <div id="sidebar" class="sidebar responsive">
        <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
        </script>

        <div class="sidebar-shortcuts" id="sidebar-shortcuts">
            <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                <button class="btn btn-success">
                    <i class="ace-icon fa fa-signal"></i>
                </button>

                <button class="btn btn-info">
                    <i class="ace-icon fa fa-pencil"></i>
                </button>

                <!-- #section:basics/sidebar.layout.shortcuts -->
                <button class="btn btn-warning">
                    <i class="ace-icon fa fa-users"></i>
                </button>

                <button class="btn btn-danger">
                    <i class="ace-icon fa fa-cogs"></i>
                </button>

                <!-- /section:basics/sidebar.layout.shortcuts -->
            </div>

            <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>

                <span class="btn btn-info"></span>

                <span class="btn btn-warning"></span>

                <span class="btn btn-danger"></span>
            </div>
        </div><!-- /.sidebar-shortcuts -->

        <ul class="nav nav-list">

            <li>
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-list"></i>
                    <span class="menu-text"> 系统管理员 </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                     <li>
                        <a href="${ctx}/admin/classPreset">
                            <i class="menu-icon fa fa-caret-right"></i>
                            班级预设
                        </a>
                    </li>
                    <li>
                        <a href="${ctx}/admin/courseApproval">
                            <i class="menu-icon fa fa-caret-right"></i>
                            课程审定
                        </a>
                    </li>
                </ul>
            </li>

            <li class="active open">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-list"></i>
                    <span class="menu-text"> 数据管理 </span>

                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

              <ul class="submenu">
                    <li >
                        <a href="${ctx}/admin/dataStudent">
                            <i class="menu-icon fa fa-caret-right"></i>
                            幼儿数据管理
                        </a>
                    </li>
                    <li class="active">
                        <a href="${ctx}/admin/dataTeacher">
                            <i class="menu-icon fa fa-caret-right"></i>
                            教师数据管理
                        </a>
                    </li>
                
                </ul>
            </li>
        </ul><!-- /.nav-list -->

        <!-- #section:basics/sidebar.layout.minimize -->
        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>

        <!-- /section:basics/sidebar.layout.minimize -->
        <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
        </script>
    </div>

    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    <a href="#">数据管理</a>
                </li>
                <li class="active">教师数据管理</li>
            </ul><!-- /.breadcrumb -->

            <!-- #section:basics/content.searchbox -->
            <div class="nav-search" id="nav-search">
                <form class="form-search">
							<span class="input-icon">
								<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
								<i class="ace-icon fa fa-search nav-search-icon"></i>
							</span>
                </form>
            </div><!-- /.nav-search -->

            <!-- /section:basics/content.searchbox -->
        </div>

        <div class="ace-settings-container" id="ace-settings-container">
            <a role="button" class="green">
                <button class="btn btn-info" data-toggle="modal" data-target="#Post">批量导入</button>
            </a>
        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <!-- /section:settings.box -->
            <div class="page-content-area">
                <div class="page-header">
                    <h1>
                        <i class="ace-icon fa fa-angle-double-right"></i>
                        <i class="ace-icon fa fa-angle-double-right"></i>
                        <i class="ace-icon fa fa-angle-double-right"></i>
                        教师数据管理
                    </h1>
                </div><!-- /.page-header -->

                <div class="row">
                    <div class="col-xs-12">
                        <!-- <div class="table-responsive"> -->

                        <!-- <div class="dataTables_borderWrap"> -->
                        <div>
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>工号</th>
                                    <th>姓名</th>
                                    <th>级别</th>
                                    <th>联系方式</th>
                                    <!--<th></th>
                                    <th></th>-->
                                    <th></th>
                                </tr>
                                </thead>

                                <tbody  id="Ttbody">
                                <tr>
                                    <td>Class 1</td>
                                    <td>
                                        <a href="#">app.com</a>
                                    </td>
                                    <td>7-15周</td>
                                    <td>Miss.S</td>

                                    <td>
                                        <div class="hidden-sm hidden-xs action-buttons">
                                            <a class="green" href="#">
                                                <a href="#modal-table" role="button" class="green" data-toggle="modal">
                                                    <i class="ace-icon fa fa-pencil bigger-130"></i>
                                                </a>
                                            </a>

                                            <a class="red" href="#">
                                                <a href="javascript:void(0);" onclick="del()">
                                                    <i class="ace-icon fa fa-trash-o bigger-130"></i>
                                                </a>
                                            </a>

                                            <a class="red" href="#">
                                                <i class="ace-icon fa fa-check-square-o bigger-130"></i>
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
               <div class="row">
                   <div  class="col-xs-6">
                            <div id="Pagination" class="pagination"  style="padding-left:50%"><!-- 这里显示分页 --></div>
                   </div>
               </div>
				<div class="modal fade" id="Post">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
								<h4 class="modal-title">上传</h4>
							</div>
							<div class="modal-body" style="height: 250px">
								<div id="dropz" class="dropzone" >
								</div>
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
							</div>
						</div>
					</div>
				</div>

                <div id="modal-table" class="modal fade" tabindex="-1">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header no-padding">
                                <div class="table-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                        <span class="white">&times;</span>
                                    </button>
                                    修改信息
                                </div>
                            </div>

                            <div class="modal-body no-padding">
                                <table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
                                    <thead>
                                    <tr>
                                        <th>姓名</th>
                                        <th>级别</th>
                                        <th>联系方式</th>
                                    </tr>
                                    </thead>

                                    <tbody id="Btbody">
                                    <tr>
                                        <td><input class="input-small" value="app.com"/></td>
                                        <td><input class="input-small" value="7-15周"/></td>
                                        <td><input class="input-small" value="Miss.S"/></td>
                                    </tr>

                                    </tbody>
                                </table>
                            </div>

                            <div class="modal-footer no-margin-top">
                                <button class="btn btn-sm btn-success" data-dismiss="modal"  onclick="updateTeacher()">
                                    <i class="ace-icon fa fa-floppy-o bigger-160"></i>
                                    保存
                                </button>
                            </div>
                        </div><!-- /.modal-content -->
                    </div><!-- /.modal-dialog -->
                </div><!-- PAGE CONTENT ENDS -->

            </div><!-- /.page-content-area -->
        </div><!-- /.page-content -->
    </div><!-- /.main-content -->

    <div class="footer">
        <div class="footer-inner">
            <!-- #section:basics/footer -->
            <div class="footer-content">
						<span class="bigger-120">
							<span class="blue bolder">KID</span>
							Education &copy; 2016
						</span>
            </div>

            <!-- /section:basics/footer -->
        </div>
    </div>

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div><!-- /.main-container -->

<!-- basic scripts -->

<!--[if !IE]> -->
<script type="text/javascript">
    window.jQuery || document.write("<script src='${ctx}/js/jquery.min.js'>"+"<"+"/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='../js/jquery1x.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
    if('ontouchstart' in document.documentElement) document.write("<script src='${ctx}/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="${ctx}/js/bootstrap.min.js"></script>

<!-- page specific plugin scripts -->


<!-- ace scripts -->
<script src="${ctx}/js/ace-elements.min.js"></script>
<script src="${ctx}/js/ace.min.js"></script>

<!-- inline scripts related to this page -->
<script type="text/javascript">
    function del(){
        alert("delete");
    }
</script>

<script>
    //上传excel
    $("#dropz").dropzone({
        url: "../teacher/batchImport",
        paramName : "file", // paramName：相当于元素input的name属性，默认为file。
        dictDefaultMessage: "选择要上传的文件<br/>支持拖拽",
        maxFiles: 1,
        maxFilesize: 512,
        acceptedFiles: ".xls,.xlsx",

        dictCancelUpload:"取消",
        dictCancelUploadConfirmation:"确认取消吗？",
        dictRemoveFile:"删除",
        addRemoveLinks:false,
        init: function() {
            this.on("success", function(file) {
                $("#uploadname").val(file.name);
            });
        }
    });


</script>
<!-- the following scripts are used in demo only for onpage help and you don't need them -->
<link rel="stylesheet" href="${ctx}/css/ace.onpage-help.css" />
<link rel="stylesheet" href="${ctx}/css/sunburst.css" />


<script src="${ctx}/js/adminJS/adminTeacher.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.pagination.js"></script>
</body>
</html>
